﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZDT.Text
{
    public class WR
    {
        public static void Write(string path, string contents, bool isAppend = true)
        {
            if (isAppend)
            {
                System.IO.File.AppendAllText(path, contents);
            }
            else
            {
                System.IO.File.WriteAllText(path, contents);
            }
        }
        public static string Read(string path)
        {
            return System.IO.File.ReadAllText(path);
        }
        public static string[] ReadLines(string path)
        {
            return System.IO.File.ReadAllLines(path);
        }
    }
}
